home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_basi / agavb25.zip / VB.ZIP / GANNULAR.FRM < prev    next >
Text File  |  1996-01-16  |  14KB  |  432 lines

  1. VERSION 2.00
  2. Begin Form AnnularDemo 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Annulars"
  6.    ClientHeight    =   4050
  7.    ClientLeft      =   1515
  8.    ClientTop       =   1455
  9.    ClientWidth     =   8655
  10.    Height          =   4455
  11.    Left            =   1455
  12.    LinkTopic       =   "Form2"
  13.    MaxButton       =   0   'False
  14.    MDIChild        =   -1  'True
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4050
  17.    ScaleWidth      =   8655
  18.    Top             =   1110
  19.    Width           =   8775
  20.    Begin Frame Frame4 
  21.       BackColor       =   &H00C0C0C0&
  22.       Caption         =   "Annular Radius Properties"
  23.       Height          =   960
  24.       Left            =   4050
  25.       TabIndex        =   5
  26.       Top             =   2880
  27.       Width           =   4450
  28.       Begin HScrollBar HScroll1 
  29.          Height          =   240
  30.          Index           =   2
  31.          Left            =   1815
  32.          Max             =   100
  33.          TabIndex        =   8
  34.          Top             =   330
  35.          Width           =   2000
  36.       End
  37.       Begin HScrollBar HScroll1 
  38.          Height          =   240
  39.          Index           =   3
  40.          Left            =   1815
  41.          Max             =   100
  42.          TabIndex        =   9
  43.          Top             =   555
  44.          Width           =   2000
  45.       End
  46.       Begin Label Label1 
  47.          Alignment       =   1  'Right Justify
  48.          AutoSize        =   -1  'True
  49.          BackStyle       =   0  'Transparent
  50.          Caption         =   "AnnularInnerRadius:"
  51.          FontBold        =   0   'False
  52.          FontItalic      =   0   'False
  53.          FontName        =   "Arial"
  54.          FontSize        =   8.25
  55.          FontStrikethru  =   0   'False
  56.          FontUnderline   =   0   'False
  57.          Height          =   210
  58.          Index           =   2
  59.          Left            =   285
  60.          TabIndex        =   10
  61.          Top             =   330
  62.          Width           =   1470
  63.       End
  64.       Begin Label Label2 
  65.          Alignment       =   2  'Center
  66.          AutoSize        =   -1  'True
  67.          BackStyle       =   0  'Transparent
  68.          Caption         =   "0"
  69.          Height          =   195
  70.          Index           =   2
  71.          Left            =   3900
  72.          TabIndex        =   11
  73.          Top             =   345
  74.          Width           =   120
  75.       End
  76.       Begin Label Label1 
  77.          Alignment       =   1  'Right Justify
  78.          AutoSize        =   -1  'True
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   "AnnularOuterRadius:"
  81.          FontBold        =   0   'False
  82.          FontItalic      =   0   'False
  83.          FontName        =   "Arial"
  84.          FontSize        =   8.25
  85.          FontStrikethru  =   0   'False
  86.          FontUnderline   =   0   'False
  87.          Height          =   210
  88.          Index           =   3
  89.          Left            =   255
  90.          TabIndex        =   12
  91.          Top             =   570
  92.          Width           =   1515
  93.       End
  94.       Begin Label Label2 
  95.          Alignment       =   2  'Center
  96.          AutoSize        =   -1  'True
  97.          BackStyle       =   0  'Transparent
  98.          Caption         =   "0"
  99.          Height          =   195
  100.          Index           =   3
  101.          Left            =   3900
  102.          TabIndex        =   13
  103.          Top             =   570
  104.          Width           =   120
  105.       End
  106.    End
  107.    Begin Frame Frame3 
  108.       BackColor       =   &H00C0C0C0&
  109.       Caption         =   "Annular Value Properties"
  110.       Height          =   960
  111.       Left            =   4050
  112.       TabIndex        =   24
  113.       Top             =   1740
  114.       Width           =   4450
  115.       Begin HScrollBar HScroll1 
  116.          Height          =   240
  117.          Index           =   0
  118.          Left            =   1785
  119.          Max             =   100
  120.          TabIndex        =   26
  121.          Top             =   315
  122.          Width           =   2000
  123.       End
  124.       Begin HScrollBar HScroll1 
  125.          Height          =   240
  126.          Index           =   1
  127.          Left            =   1785
  128.          Max             =   100
  129.          TabIndex        =   25
  130.          Top             =   540
  131.          Width           =   2000
  132.       End
  133.       Begin Label Label2 
  134.          Alignment       =   2  'Center
  135.          AutoSize        =   -1  'True
  136.          BackStyle       =   0  'Transparent
  137.          Caption         =   " 0"
  138.          Height          =   195
  139.          Index           =   0
  140.          Left            =   3855
  141.          TabIndex        =   15
  142.          Top             =   330
  143.          Width           =   180
  144.       End
  145.       Begin Label Label1 
  146.          Alignment       =   1  'Right Justify
  147.          AutoSize        =   -1  'True
  148.          BackStyle       =   0  'Transparent
  149.          Caption         =   "AnnularStartValue:"
  150.          FontBold        =   0   'False
  151.          FontItalic      =   0   'False
  152.          FontName        =   "Arial"
  153.          FontSize        =   8.25
  154.          FontStrikethru  =   0   'False
  155.          FontUnderline   =   0   'False
  156.          Height          =   210
  157.          Index           =   0
  158.          Left            =   345
  159.          TabIndex        =   29
  160.          Top             =   330
  161.          Width           =   1380
  162.       End
  163.       Begin Label Label1 
  164.          Alignment       =   1  'Right Justify
  165.          AutoSize        =   -1  'True
  166.          BackStyle       =   0  'Transparent
  167.          Caption         =   "AnnularStopValue:"
  168.          FontBold        =   0   'False
  169.          FontItalic      =   0   'False
  170.          FontName        =   "Arial"
  171.          FontSize        =   8.25
  172.          FontStrikethru  =   0   'False
  173.          FontUnderline   =   0   'False
  174.          Height          =   210
  175.          Index           =   1
  176.          Left            =   345
  177.          TabIndex        =   28
  178.          Top             =   555
  179.          Width           =   1365
  180.       End
  181.       Begin Label Label2 
  182.          Alignment       =   2  'Center
  183.          AutoSize        =   -1  'True
  184.          BackStyle       =   0  'Transparent
  185.          Caption         =   " 0"
  186.          Height          =   195
  187.          Index           =   1
  188.          Left            =   3855
  189.          TabIndex        =   27
  190.          Top             =   570
  191.          Width           =   180
  192.       End
  193.    End
  194.    Begin AGAUGE Gauge1 
  195.       Angle           =   0
  196.       AutoRedraw      =   -1  'True
  197.       AVersion        =   2.5
  198.       BackgroundColor =   &H00C0C0C0&
  199.       BevelInner      =   2  ' 2 - Inset
  200.       BevelOuter      =   1  ' 1 - Raised
  201.       BevelWidth      =   3
  202.       BorderType      =   1  ' 1 - Bevel
  203.       BorderWidth     =   10
  204.       FontID          =   0
  205.       FrameColor      =   &H00000000&
  206.       FrameScaleX     =   0
  207.       FrameScaleY     =   0
  208.       FrameStyle      =   0  ' 0 - None
  209.       Height          =   3735
  210.       Left            =   30
  211.       MouseControl    =   -1  'True
  212.       OutlineAlign    =   0  ' 0 - Left 
  213.       OutlineColor    =   &H00000000&
  214.       OutlineTitle    =   ""
  215.       OutlineWidth    =   0
  216.       Radius          =   0
  217.       Shape           =   ""
  218.       TabIndex        =   23
  219.       Top             =   135
  220.       Value           =   0
  221.       Width           =   3900
  222.       XScale          =   0
  223.       YScale          =   0
  224.       ZLoad           =   GANNULAR.FRX:0000
  225.    End
  226.    Begin Frame Frame2 
  227.       BackColor       =   &H00C0C0C0&
  228.       Caption         =   "Annular Color"
  229.       Height          =   1095
  230.       Left            =   6210
  231.       TabIndex        =   6
  232.       Top             =   150
  233.       Width           =   1425
  234.       Begin Label Colors 
  235.          BackColor       =   &H00000000&
  236.          Height          =   225
  237.          Index           =   0
  238.          Left            =   120
  239.          TabIndex        =   7
  240.          Top             =   390
  241.          Width           =   225
  242.       End
  243.       Begin Label Colors 
  244.          BackColor       =   &H00808080&
  245.          Height          =   225
  246.          Index           =   1
  247.          Left            =   120
  248.          TabIndex        =   14
  249.          Top             =   630
  250.          Width           =   225
  251.       End
  252.       Begin Label Colors 
  253.          BackColor       =   &H00FFFFFF&
  254.          Height          =   225
  255.          Index           =   2
  256.          Left            =   360
  257.          TabIndex        =   16
  258.          Top             =   390
  259.          Width           =   225
  260.       End
  261.       Begin Label Colors 
  262.          BackColor       =   &H000000FF&
  263.          Height          =   225
  264.          Index           =   3
  265.          Left            =   360
  266.          TabIndex        =   17
  267.          Top             =   630
  268.          Width           =   225
  269.       End
  270.       Begin Label Colors 
  271.          BackColor       =   &H0000FF00&
  272.          Height          =   225
  273.          Index           =   4
  274.          Left            =   600
  275.          TabIndex        =   18
  276.          Top             =   390
  277.          Width           =   225
  278.       End
  279.       Begin Label Colors 
  280.          BackColor       =   &H0000FFFF&
  281.          Height          =   225
  282.          Index           =   5
  283.          Left            =   600
  284.          TabIndex        =   19
  285.          Top             =   630
  286.          Width           =   225
  287.       End
  288.       Begin Label Colors 
  289.          BackColor       =   &H00FF0000&
  290.          Height          =   225
  291.          Index           =   6
  292.          Left            =   840
  293.          TabIndex        =   20
  294.          Top             =   390
  295.          Width           =   225
  296.       End
  297.       Begin Label Colors 
  298.          BackColor       =   &H00FF00FF&
  299.          Height          =   225
  300.          Index           =   7
  301.          Left            =   840
  302.          TabIndex        =   21
  303.          Top             =   630
  304.          Width           =   225
  305.       End
  306.       Begin Label Colors 
  307.          BackColor       =   &H000080FF&
  308.          Height          =   225
  309.          Index           =   8
  310.          Left            =   1080
  311.          TabIndex        =   22
  312.          Top             =   390
  313.          Width           =   225
  314.       End
  315.       Begin Label Colors 
  316.          BackColor       =   &H00004040&
  317.          Height          =   225
  318.          Index           =   9
  319.          Left            =   1080
  320.          TabIndex        =   4
  321.          Top             =   630
  322.          Width           =   225
  323.       End
  324.    End
  325.    Begin Frame Frame1 
  326.       BackColor       =   &H00C0C0C0&
  327.       Caption         =   "Annular ID"
  328.       Height          =   1095
  329.       Left            =   4800
  330.       TabIndex        =   0
  331.       Top             =   150
  332.       Width           =   1215
  333.       Begin OptionButton Option1 
  334.          BackColor       =   &H00C0C0C0&
  335.          Caption         =   "2"
  336.          Height          =   255
  337.          Index           =   2
  338.          Left            =   360
  339.          TabIndex        =   3
  340.          Top             =   720
  341.          Width           =   615
  342.       End
  343.       Begin OptionButton Option1 
  344.          BackColor       =   &H00C0C0C0&
  345.          Caption         =   "1"
  346.          Height          =   255
  347.          Index           =   1
  348.          Left            =   360
  349.          TabIndex        =   2
  350.          Top             =   465
  351.          Width           =   615
  352.       End
  353.       Begin OptionButton Option1 
  354.          BackColor       =   &H00C0C0C0&
  355.          Caption         =   "0"
  356.          Height          =   255
  357.          Index           =   0
  358.          Left            =   360
  359.          TabIndex        =   1
  360.          Top             =   240
  361.          Value           =   -1  'True
  362.          Width           =   615
  363.       End
  364.    End
  365. End
  366.  
  367. Sub Colors_Click (Index As Integer)
  368.  
  369.     gauge1.AnnularColor = colors(Index).BackColor
  370.  
  371. End Sub
  372.  
  373. Sub Form_Load ()
  374.  
  375.     hscroll1(0) = gauge1.AnnularStartValue
  376.     hscroll1(1) = gauge1.AnnularStopValue
  377.     hscroll1(2) = gauge1.AnnularInnerRadius * 100
  378.     hscroll1(3) = gauge1.AnnularOuterRadius * 100
  379.  
  380. End Sub
  381.  
  382. Sub HScroll1_Change (Index As Integer)
  383.  
  384.     Select Case Index
  385.         Case 0
  386.             gauge1.AnnularStartValue = hscroll1(0)
  387.             label2(0) = hscroll1(0)
  388.         Case 1
  389.             gauge1.AnnularStopValue = hscroll1(1)
  390.             label2(1) = hscroll1(1)
  391.         Case 2
  392.             gauge1.AnnularInnerRadius = hscroll1(2) / 100
  393.             label2(2) = hscroll1(2) / 100
  394.         Case 3
  395.             gauge1.AnnularOuterRadius = hscroll1(3) / 100
  396.             label2(3) = hscroll1(3) / 100
  397.     End Select
  398.  
  399.  
  400. End Sub
  401.  
  402. Sub HScroll1_Scroll (Index As Integer)
  403.  
  404.     Select Case Index
  405.         Case 0
  406.             gauge1.AnnularStartValue = hscroll1(0)
  407.             label2(0) = hscroll1(0)
  408.         Case 1
  409.             gauge1.AnnularStopValue = hscroll1(1)
  410.             label2(1) = hscroll1(1)
  411.         Case 2
  412.             gauge1.AnnularInnerRadius = hscroll1(2) / 100
  413.             label2(2) = hscroll1(2) / 100
  414.         Case 3
  415.             gauge1.AnnularOuterRadius = hscroll1(3) / 100
  416.             label2(3) = hscroll1(3) / 100
  417.     End Select
  418.  
  419.  
  420. End Sub
  421.  
  422. Sub Option1_Click (Index As Integer)
  423.  
  424.     gauge1.AnnularID = Index
  425.     hscroll1(0) = gauge1.AnnularStartValue
  426.     hscroll1(1) = gauge1.AnnularStopValue
  427.     hscroll1(2) = gauge1.AnnularInnerRadius * 100
  428.     hscroll1(3) = gauge1.AnnularOuterRadius * 100
  429.  
  430. End Sub
  431.  
  432.